﻿using FriendStar.Application.VBaseData;
using FriendStar.Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;

namespace FriendStar.Web.Areas.VBaseData.Controllers
{
    public class V_ZSJ_B1_GH_SupplierForRegisterController : ControllerBase
    {
        private V_ZSJ_B1_GH_SupplierForRegisterApp v_zsj_B1_GH_SupplierForRegisterApp = new V_ZSJ_B1_GH_SupplierForRegisterApp();
        public ActionResult GetList(string typeFlag)
        {
            bool flag = true;
            if (typeFlag == "CR")//生产入库
            {
                flag = false;
            }
            else if (typeFlag == "CW")//外委入库
            {
                flag = true;
            }
            else
            {
                return Error("类型错误!");
            }
            var data = v_zsj_B1_GH_SupplierForRegisterApp.GetList(flag); 
            return Content(data.ToJson());
        }
    }
}
